<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); 
		/**
		* ErrorCodes
		*/
class Errors {
	private static $errorCodes = array(
		0=>"Invalid Login, please try again",
		1=>"Corrupt Login Profile::Username exist without Profile",
		2=>"Errors while submitting Profile<br/><br/>Please fix the errors indicated below.",
		3=>"Start Date format incorrect",
		4=>"End Date format incorrect",
		5=>"Errors while creating a new Club<br/><br/>Please fix the errors indicated below.",
		6=>"Error, Club Name already exist. Please choose a new name or contact the administrator to update."
		);

	public function __construct(){
		
		}

	public static function getError($code){
			if($code<sizeof(self::$errorCodes))
					return self::$errorCodes[$code];
				else
					return "ERROR CODE NOT DEFINED";
		}
}
?>